package modules;

import org.nutz.dao.Dao;
import org.nutz.ioc.loader.annotation.Inject;
import org.nutz.ioc.loader.annotation.IocBean;
import org.nutz.mvc.annotation.By;
import org.nutz.mvc.annotation.Filters;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.Ok;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.ioc.provider.ComboIocProvider;

/**
 * nutz的主模块， 主要用于扫描子模块
 * 
 * @author lost
 */
@Modules(scanPackage = true)
@Ok("jsp:/common/data.jsp")
@IocBy(type = ComboIocProvider.class, args = {
		"*org.nutz.ioc.loader.json.JsonLoader", "/config",
		"*org.nutz.ioc.loader.annotation.AnnotationIocLoader", "modules" })
@IocBean
@SetupBy(value=WebSetUp.class)
@Filters(@By(type=filter.MainFilter.class,args={"ioc:mainFilter"}))
public class MainModule {
	@Inject
	protected Dao dao;
}
